-
Notifications
You must be signed in to change notification settings - Fork 38.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disallow use of Plugin or PluginConfig when using Policy #88864
Conversation
/hold |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alculquicondor The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm +1 to merging this only if #88768 makes it before the freeze |
pkg/scheduler/factory.go
Outdated
pluginConfig = append(pluginConfig, prof.PluginConfig...) | ||
prof.PluginConfig = pluginConfig | ||
if len(prof.PluginConfig) != 0 { | ||
return nil, errors.New("using PluginConfig and Policy is not supported") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: reuse the error string, and using PluginConfig and Policy at the same time is not supported
sounds clearer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The errors are slightly different. Added the word simultaneously
.
/milestone v1.18 |
@damemi: You must be a member of the kubernetes/milestone-maintainers GitHub team to set the milestone. If you believe you should be able to issue the /milestone command, please contact your and have them propose you as an additional delegate for this responsibility. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/milestone v1.18 |
Signed-off-by: Aldo Culquicondor <acondor@google.com>
344f5cf
to
1fab275
Compare
/retest |
/lgtm |
/hold cancel #88768 is already approved |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Plugin/PluginConfig and Policy are competing APIs. If using them together, merging semantics become complicated. We should explicitly disallow them.
/sig scheduling
Which issue(s) this PR fixes:
This simplifies #88529
Special notes for your reviewer:
This disables any support for using Extenders and Plugin/PluginConfig at the same time. It should be merged after #88768
Does this PR introduce a user-facing change?: